package datasource_bak

import (
	"github.com/modern-go/concurrent"
	"reflect"
)

var dbCache = concurrent.NewMap()

func LoadByType(p reflect.Type) (interface{}, bool) {
	return dbCache.Load(p)
}

func SaveByType(p reflect.Type, db interface{}) {
	dbCache.Store(p, db)
}
